import {
    Button,
    Cell,
    CellGroup,
    DatetimePicker,
    Dialog,
    DropdownItem,
    DropdownMenu,
    Empty,
    Field,
    Form,
    Icon,
    List,
    NavBar,
    Popup,
    PullRefresh,
    Tabbar,
    TabbarItem,
    Tag,
    Toast,
    Uploader
} from 'vant';
import Vue from 'vue';

// 注册组件
Vue.use(Button);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Field);
Vue.use(Form);
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Icon);
Vue.use(Uploader);
Vue.use(Toast);
Vue.use(Dialog);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Empty);
Vue.use(Tag);
Vue.use(Popup);
Vue.use(DatetimePicker);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);

// 全局注册提示组件
Vue.prototype.$toast = Toast;
Vue.prototype.$dialog = Dialog; 